package com.ita.util;

import java.util.Properties;

public class MyProperties extends Properties {

	private static final long serialVersionUID = 1L;

	@Override
	public String getProperty(String key) {
		String oval = super.getProperty(key);
		if (oval == null || oval.equals(""))
			return System.getenv(key);
		return oval;

	}

	@Override
	public Object get(Object key) {
		Object obj = super.get(key);
		if ((obj == null || obj.equals("")) && key instanceof String)
			return System.getenv((String) key);
		return obj;
	}

}
